﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery-easyui-1.2.6/themes/gray/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery-easyui-1.2.6/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery-easyui-1.2.6/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-easyui-1.2.6/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-easyui-1.2.6/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="../../js/jquery-easyui-1.2.6/plugins/jquery.datagrid.js" type="text/javascript"></script>

<script type="text/javascript">

    //多条件查询方法
    function tsearch() {
        var EvalWay = $("#MyEvalWay").combobox("getValue");
        var Begin = $("#Begin").datebox("getValue");
        var End = $("#End").datebox("getValue");
        $('#dg').datagrid('options').pageNumber = 1;
        $('#dg').datagrid('getPager').pagination({ pageNumber: 1 });
        $('#dg').datagrid('options').url = 'ashx/EvaluationInfoManagerServer.ashx?action=search&EvalWay=' + EvalWay + '&Begin=' + Begin + '&End=' + End;
        $('#dg').datagrid("reload");
    }

</script>

</head>
<body>
    <form id="form1">
    <div region="center" title="医生患者评价管理" >
<table id="dg" title="医生患者评价" class="easyui-datagrid" style="overflow:auto; height:550px"
			url="ashx/EvaluationInfoManagerServer.ashx?action=list"
			toolbar="#toolbar" pagination="true"
			rownumbers="true" fitColumns="true" singleSelect="true"   idField='ID'
            pageSize="20"
            >
		<thead>
			<tr>
				<th field="ID" width="40">编号</th>
				<th field="EvalWay" width="40">评价方式</th>
                <th field="EvalContent" width="90">评价内容</th>
                <th field="AddTime" width="40">评价时间</th>
			</tr>
		</thead>
	</table>

    <div id="toolbar" style="padding:5px;height:auto">

		<div>
			评价时间: <input class="easyui-datebox" style="width:80px" id="Begin">
			到: <input class="easyui-datebox" style="width:80px" id="End">
            
			评价方式: 
			<select name="MyEvalWay" id="MyEvalWay" style="width:150px;">
            </select>
              <script type="text/javascript">

                  $('#MyEvalWay').combobox({
                      url: 'ashx/EvaluationInfoManagerServer.ashx?action=EvalWay',
                      valueField: 'SystemParameter_ID',
                      textField: 'SystemParameter_Name',
                      panelHeight: "auto"
                  });
             
            </script>
            
			<a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="tsearch()">查询</a>
		</div>
	</div>
    </div>
    </form>
</body>
</html>
